package com.yunc.modules.sys.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统角色表
 *
 * @author congcong tao
 * @create 2018/5/13 下午9:19
 */
@TableName("sys_role")
@Data
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private String id;

    @Excel(name = "角色名称", height = 20, width = 30, isImportField = "true_st")
    private String roleName;

    @Excel(name = "状态", replace = { "启用_1", "禁用_2" }, isImportField = "true_st")
    private String status;

    /**
     * 数据范围（1：所有数据权限；2：自定义数据权限；3：本部门数据权限；4：本人）
     */
    private String dataScope;

    private Integer orderNum;

    private String remark;

    private String createUser;

    private Date createTime;

    @TableField(exist = false)
    private String menuIds;
}